import request from '@/utils/request'

// 查询商家报名活动列表
export function listShangjiabaoming(query) {
  return request({
    url: '/system/shangjiabaoming/list',
    method: 'get',
    params: query
  })
}

// 查询商家报名活动类型名称
export function listhdlxname(query) {
  return request({
    url: '/system/shangjiabaoming/hdlxname',
    method: 'get',
    params: query
  })
}

// 查询商家报名活动详细
export function getShangjiabaoming(sjbmHdid) {
  return request({
    url: '/system/shangjiabaoming/' + sjbmHdid,
    method: 'get'
  })
}

// 新增商家报名活动
export function addShangjiabaoming(data) {
  return request({
    url: '/system/shangjiabaoming',
    method: 'post',
    data: data
  })
}

// 修改商家报名活动
export function updateShangjiabaoming(data) {
  return request({
    url: '/system/shangjiabaoming',
    method: 'put',
    data: data
  })
}

// 删除商家报名活动
export function delShangjiabaoming(sjbmHdid) {
  return request({
    url: '/system/shangjiabaoming/' + sjbmHdid,
    method: 'delete'
  })
}
